/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_WEBBROWSER_H__
#define __LUA_WEBBROWSER_H__
#pragma once

#include "LuaActiveX.h"

namespace DuiLib {

class LuaWebBrowser : public LuaActiveX
{
    SDLUA_CLASS_DECLARE(LuaWebBrowser);

    int SetHomePage(LuaState *L);
    int GetHomePage(LuaState *L);

    void SetAutoNavigation(bool bAuto);
    bool IsAutoNavigation();

    int Navigate2(LuaState *L);
    void Refresh();
    void Refresh2(int Level);
    void GoBack();
    void GoForward();
    void NavigateHomePage();
    int NavigateUrl(LuaState *L);

    bool DoCreateControl();
};

}

#endif //__LUA_WEBBROWSER_H__